@extends('layouts.master')

@section('title')
    商家管理——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
    <link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
    <link rel="stylesheet" href="/resource/css/fileinput.min.css">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/jquery.twbsPagination.js"></script>
    <script src="/resource/js/date.js"></script>
    <script src="/resource/js/fileinput.min.js"></script>
    <script src="/resource/js/fileinput_locale_zh.js"></script>
@stop


@section('content')

    @include('common.nav')
    <div class="container-fluid">
        <div class="row" id="navLeft">
            @include('common.store_nav')
            <div class="col-lg-10">
                <div class="navbottom">
                    <span>您的位置：</span>其他 > 商家资质审核
                </div>
                <div class="contentNav">
                    <ul>
                        <li>商家资质审核</li>
                        <li class="btn btn-default"><a href="b-audit.html">列表</a></li>
                        <li class="btn btn-default active"><a href="b-audit-new.html">新增商家</a></li>
                    </ul>
                </div>
                <hr>
                <div class="contentMember_new">
                    {{ Form::open(['url'=>'/add_supplier' ,'files' => true, 'method' => 'post']) }}
                    <table class="table table-hover">
                        <tbody>
                        <tr>
                            <th>商家名称</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th><input type="text" class="input-small form-control" style="width:260px" name="supplier_name" value="{{ $supplier->supplier_name }}"></th>
                        </tr>
                        <tr>
                            <th>公司名称</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th><input type="text" class="input-small form-control" style="width:260px" name="company" value="{{ $supplier->company }}"></th>
                        </tr>
                        <tr>
                            <th><span>*</span>品牌名称：</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th><input type="text" class="input-small form-control" style="width:260px;float:left;" name="brand_name" value="{{ $supplier->brand_name }}"></th>
                        </tr>
                        <tr>
                            <th><span>*</span>产地：</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th><input type="text" class="input-small form-control" style="width:260px;float:left;" name="place" value="{{ $supplier->place }}"></th>
                        </tr>
                        <tr>
                            <th>木材市场</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th>
                                <input type="text" class="input-small form-control" style="width:260px;float:left;" placeholder="" name="market" value="{{ $supplier->market }}">
                            </th>
                        </tr>
                        <tr>
                            <th><span>*</span>公司规模：</th>
                        </tr>
                            <th>
                                <select class="form-control" style="width:260px;float:left;" name="scale">
                                    <option value="0">请选择...</option>
                                    @foreach($scale as $k => $v)
                                        <option value="{{ $k }}" @if($supplier->scale == $k) selected @endif>{{ $v }}</option>
                                    @endforeach
                                </select>
                            </th>
                        <tr>
                            <th><span>*</span>经营范围：</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th>
                                <input type="text" class="input-small form-control" style="width:260px;float:left;" placeholder="" name="business_scope" value="{{ $supplier->business_scope }}">
                            </th>
                        </tr>
                        <tr>
                            <th>商家图片</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th>
                                <input id="input-id" type="file" class="file" data-preview-file-type="text" name="supplier_img1">
                            </th>
                        </tr>
                        <tr>
                            <th>法人</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th>
                                <input type="text" class="input-small form-control" style="width:260px;float:left;" placeholder="" name="owner" value="{{ $supplier->owner }}">
                            </th>
                        </tr>
                        <tr>
                            <th>联系电话</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th>
                                <input type="text" class="input-small form-control" style="width:260px;float:left;" placeholder="" name="phone" value="{{ $supplier->phone }}">
                            </th>
                        </tr>
                        <tr>
                            <th>营业执照图</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th>
                                <input id="input-id" type="file" class="file" data-preview-file-type="text" name="operate_license">
                            </th>
                        </tr>
                        <tr>
                            <th>税务登记表</th>
                        </tr>
                        <tr class="newBorder_top">
                            <th>
                                <input id="input-id" type="file" class="file" data-preview-file-type="text" name="tex_license">
                            </th>
                        </tr>
                        </tbody>
                    </table>
                    <button type="submit" class="btn btn-default">提交</button>
                    <input type="hidden" name="supplier_id" value="{{ $supplier->supplier_id }}">
                    {{ Form::close() }}
                </div>
            </div>
        </div>
    </div>
@stop
